﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Configuration;
using System.Web;
using System.Configuration;

namespace Mukhopatro.Helpers
{
    public class SiteSettings
    {
        public const int PageSize = 50;

        public static string BaseUrl
        {
            get
            {
                string orginalUrl = HttpContext.Current.Request.Url.AbsoluteUri;
                if (HttpContext.Current.Request.Url.Query.Length > 0)
                    orginalUrl = orginalUrl.Replace(HttpContext.Current.Request.Url.Query, string.Empty);

                //return orginalUrl.Replace(HttpContext.Current.Request.Url.AbsolutePath, string.Empty) + ((HttpContext.Current.Request.ApplicationPath == "/" ? "" : HttpContext.Current.Request.ApplicationPath)) + '/';
                return orginalUrl.Replace(HttpContext.Current.Request.Url.AbsolutePath, string.Empty) + '/';
            }
        }

        public static string _CLIENT_ID
        {
            get
            {
                return ConfigurationManager.AppSettings["APP_CLIENT_ID"].ToString();
            }
            
        }


    }

    public enum ContentType
    {
        Home=1,
        AboutUs=2,
        ContactUs=3,
        OurTeam=4,
        SuccessStories=5,
        OurWork=6,
        Custom=7
    }

    public enum AdminAccessType
    {
        Admin=1,
        Client=2
    }
}
